package com.base.andlang2.ui.notifications

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import com.alibaba.android.arouter.facade.annotation.Route
import com.base.andlang2.R
import com.base.andlang2.databinding.FragmentNotificationsBinding
import com.base.andlangcore.mvvm.AndLangFragment
import com.base.andlangrouter.RouteUrl
import com.base.andlangui.weight.GlideUtils.loadCenterCorp
import com.base.andlangui.weight.GlideUtils.loadCircleCorp
import com.base.andlangui.weight.GlideUtils.loadFitCenter
import com.base.andlangui.weight.GlideUtils.loadUrl

@Route(path = RouteUrl.APP_HOME_THREE)
class NotificationsFragment : AndLangFragment<FragmentNotificationsBinding,NotificationsViewModel>() {
    override fun getVB(
        inflater: LayoutInflater,
        container: ViewGroup?
    ): FragmentNotificationsBinding {
        return FragmentNotificationsBinding.inflate(inflater, container, false)
    }

    override fun getVM(): NotificationsViewModel {
        return ViewModelProvider(this)[NotificationsViewModel::class.java]
    }

    override fun initView() {
        vb.apply {
            ivNotify1.loadUrl("https://image.21go.com/image/theme/1321555128449544.jpg")
            ivNotify2.loadFitCenter("https://image.21go.com/image/theme/1321555128449544.jpg")
            ivNotify3.loadCenterCorp("https://image.21go.com/image/theme/1321555128449544.jpg")
            ivNotify4.loadCircleCorp("https://image.21go.com/image/theme/1321555128449544.jpg")
        }
        vm.apply {

        }
    }

    override fun initData() {

    }
}